%AVERAGE RANGE OF WEAPONS - GENERATION 9
\begin{figure}[h!t]
\centering
	\begin{tikzpicture}
	\begin{axis}[
	stack plots=y,
	/tikz/ybar,
	ybar stacked,
	width=9cm,
		symbolic x coords={Assault, Bio, Shock, Link, Minigun, Flak, Rocket, Lightning},
		xtick=data,	
	x tick label style={rotate=90,anchor=east},
	legend style={at={(0.5,-0.25)},
	anchor=north,legend columns=-1}
	]

%PRIMARY - avg + stdDev
	%PRIMARY - stdDev
	\addplot +[bar shift=-.2cm]
	coordinates {
	(Assault,295.1071682) 
	(Bio,272.7076447)
	(Shock,430.2650839) 
	(Link,356.3827877) 
	(Minigun,0)
	(Flak,85.44136184)
	(Rocket,267.5920232)
	(Lightning,357.3330934)
	};
	\addplot +[bar shift=-.2cm]
	coordinates 
	{
	(Assault,283.0589351) 
	(Bio,292.7850167)
	(Shock,297.7225885) 
	(Link,246.4881266) 
	(Minigun,0)
	(Flak,251.8651258)
	(Rocket,347.1560881)
	(Lightning,279.7788703)
	};

	%PRIMARY - avg
	\addplot +[bar shift=-.2cm]
	coordinates 
	{
	(Assault,283.0589351) 
	(Bio,292.7850167)
	(Shock,297.7225885) 
	(Link,246.4881266) 
	(Minigun,0)
	(Flak,251.8651258)
	(Rocket,347.1560881)
	(Lightning,279.7788703)
	};





\resetstackedplots

%SECONDARY - avg-stdDeb
\addplot  +[bar shift=.2cm] coordinates 
{
	(Assault,0) 
	(Bio,0)
	(Shock,66.51211241) 
	(Link,443.7930797) 
	(Minigun,295.5420911)
	(Flak,534.0513801)
	(Rocket,0)
	(Lightning,0)
};
%SECONDARY - avg + stdDev
\addplot  +[bar shift=.2cm]coordinates
 {
	(Assault,0) 
	(Bio,0)
	(Shock,57.45844154) 
	(Link,342.0881902) 
	(Minigun,328.0549852)
	(Flak,188.0829511)
	(Rocket,0)
	(Lightning,0)
};
%SECONDARY - Avg
	\addplot +[bar shift=.2cm]
	coordinates 
	{
	(Assault,0) 
	(Bio,0)
	(Shock,57.45844154) 
	(Link,342.0881902) 
	(Minigun,328.0549852)
	(Flak,188.0829511)
	(Rocket,0)
	(Lightning,0)
	};
	\legend{{ },{ },Primary,{ },{ },Secondary}
	\end{axis}
	\end{tikzpicture}
	\caption{\label{graph4}Range at Weapon Selection - Generation 9}
\end{figure}